package com.tongshu.miaosha.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tongshu.miaosha.domain.MiaoshaOrder;
import com.tongshu.miaosha.domain.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectKey;

@Mapper
public interface OrderDao extends BaseMapper<MiaoshaOrder> {
    MiaoshaOrder getMiaoshaOrderByUserIdGoodsId(@Param("userId") long userId, @Param("goodsId") long goodsId);

    long insertOrderInfo(OrderInfo orderInfo);

    OrderInfo getOrderById(long orderId);
}
